import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'index',
      component: ()=>import('../pages/index.vue')
    },
    {
      path:'/wode',
      component:()=>import('../pages/WoDe.vue')
    },
    {
      path:'/cd',
      component:()=>import('../pages/DingDan/FenLeiYe.vue'),
      children:[
        {
          path:'',
          component:()=>import('../pages/DingDan/DingDanChi.vue')
        },
        {
          path:'/ddc',
          component:()=>import('../pages/DingDan/DingDanChi.vue')
        },
        {
          path:'/dps',
          component:()=>import('../pages/DingDan/DaiPeiSong.vue'),
        },
        {
          path:'/psz',
          component:()=>import('../pages/DingDan/PeiSongZhong.vue')
        },
        {
          path:'/ywc',
          component:()=>import('../pages/DingDan/YiWanCheng.vue')
        },
        {
          path:'/dpsxq',
          component:()=>import('../pages/DingDan/DaiPeiSong-xq.vue')
        },
        {
          path:'/pszxq',
          component:()=>import('../pages/DingDan/PeiSongZhong-xq.vue')
        },
      ]
    },
      
  ]
})

export default router
